package com.wisdomparking.config.result;

public class ResultUtil {

	public static Result success(Object object) {
		Result result = new Result();
		result.setResCode("1");
		result.setResMessage("成功");
		result.setResData(object);

		return result;
	}

	public static Result success() {
		return success(null);
	}

	public static Result error(Integer code, String msg) {
		Result result = new Result();
		result.setResCode(String.valueOf(code));
		result.setResMessage(msg);

		return result;
	}

}
